//
//  Btttt.m
//  绘图
//
//  Created by 吴志勇 on 2020/3/27.
//  Copyright © 2020 wzy. All rights reserved.
//

#import "Btttt.h"

@implementation Btttt

- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event{
   CGRect rect =  CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height*0.5);
    
    if (CGRectContainsPoint(rect, point)) {
        return [super hitTest:point withEvent:event];
    }else{
       return  nil;
    }
}

@end
